<div class="vcalendar">

<?php  
	$sqleduc = ("SELECT user_id FROM ".mysql_real_escape_string($table_name)." WHERE user_name='".mysql_real_escape_string($_SESSION[logname])."' ");
	$uid = mysql_query($sqleduc) or die('impossible de selectionner user_id - '.mysql_error());
	$uid = mysql_fetch_array($uid);

	$sqleduc2 = ("SELECT * FROM ".mysql_real_escape_string($table_exppro)." WHERE user_id='".mysql_real_escape_string($uid[0])."' ");
	$feduc = mysql_query($sqleduc2) or die('impossible de selectionner dans educ - '.mysql_error());
	$nb = 1;

	while ($itemeduc = mysql_fetch_array($feduc) )
	{
?>
	<div id="exppro" class="expprof vevent edc">

		<label for="titre_<?php echo $nb; ?>" class="preField">Titre du poste:</label>
		<input type="text" size="31" name="titre_<?php echo $nb; ?>" value="<?php echo $itemeduc['titre']; ?>" />
		<span class="reqMark"><img src="img/action_stop.gif" class="close_ex" /></span><br/>
		
		<label for="employeur_<?php echo $nb; ?>" class="preField">Employeur:</label>
		<input type="text" size="31" name="employeur_<?php echo $nb; ?>" value="<?php echo $itemeduc['employeur']; ?>" /><br/>
		
		<label for="location_<?php echo $nb; ?>" class="preField">Adresse:</label>
		<input type="text" size="31" name="location_<?php echo $nb; ?>" value="<?php echo $itemeduc['location']; ?>" /><br/>
		
		<label for="dtstart_<?php echo $nb; ?>" class="preField">Date du:</label>
		<input type="date" size="12" name="dtstart_<?php echo $nb; ?>" class="dtdate top5" value="<?php echo $itemeduc['dtstart']; ?>" /><br/> 
		
		<label for="dtend_<?php echo $nb; ?>" class="preField">Au:</label>
		<input type="date" size="12" name="dtend_<?php echo $nb; ?>" class="dtdate" value="<?php echo $itemeduc['dtend']; ?>" /><br/>
		
		<label for="summary_<?php echo $nb; ?>" class="preField">Description:</label>
		<textarea class="top5" cols="32" name="summary_<?php echo $nb; ?>" ><?php echo $itemeduc['summary']; ?></textarea>
		
		

	<script type="text/javascript">
		//<![CDATA[
		$(document).ready(function(){
			$(".edc").each(function(){
				$(this).show();
			});
		});
		//]]>
	</script>

	</div>	

<?php
	$nb++;
	}
	if ( $nb < 5 )
	{
		$nb2--;
		for ( $i=$nb; $i < 5 ; $i++ )
		{ 
			?>
	<div id="exppro" class="expprof vevent">

		<label for="titre_<?php echo $i; ?>" class="preField">Titre du poste:</label>
		<input type="text" size="31" class="top5" name="titre_<?php echo $i; ?>" value="<?php echo $itemeduc['titre']; ?>" />
		<span class="reqMark"><img src="img/action_stop.gif" class="close_ex" /></span><br/>

		<label for="employeur_<?php echo $i; ?>" class="preField">Employeur:</label>
		<input type="text" size="31" class="top5" name="employeur_<?php echo $i; ?>" value="<?php echo $itemeduc['employeur']; ?>" /><br/>
		
		<label for="location_<?php echo $i; ?>" class="preField">Adresse:</label>
		<input type="text" size="31" class="top5" name="location_<?php echo $i; ?>" value="<?php echo $itemeduc['location']; ?>" /><br/>

		<label for="dtstart_<?php echo $i; ?>" class="preField">Date du:</label>
		<input type="date" size="12" name="dtstart_<?php echo $i; ?>" class="dtdate top5" value="<?php echo $itemeduc['dtstart']; ?>" /><br/> 

		<label for="dtend_<?php echo $i; ?>" class="preField">Au:</label>
		<input type="date" size="12" name="dtend_<?php echo $i; ?>" class="dtdate" value="<?php echo $itemeduc['dtend']; ?>" /><br/>
		
		<label for="summary_<?php echo $i; ?>" class="preField">Description:</label>
		<textarea class="top5" cols="32" name="summary_<?php echo $i; ?>" ><?php echo $itemeduc['summary']; ?></textarea>

	</div>

			<?php
		}
	}

?>

	<span class="addExppro"> (ajouter un bloc)</span>	<br/>
	<input type="submit" name="modifExppro" value="Envoyer" />
</div>